<extend name="Public/base"/>
#tab1 table{border-right:1px solid #F00;border-bottom:1px solid #F00}
#tab1 table td{border-left:1px solid #F00;border-top:1px solid #F00}
<block name="body">
	<div class="main-title">
		<h2>
			{$info['id']?'编辑':'新增'}订单
		
		</h2>
	</div>
	<ul class="tab-nav nav">
	<li data-tab="tab1" class="current"><a href="javascript:void(0);">订单修改</a></li>
	<li data-tab="tab2" ><a href="javascript:void(0);">订单详情</a>
	
	</li></ul>
<div class="tab-content">						

	<div id="tab1" class="tab-pane in tab1">
	<form action="{:U()}" method="post" class="form-horizontal">
	
		<div class="form-item">
			<label class="item-label">订单号<span class="check-tips">（唯一的id）</span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="id" value="{$info.id|default=''}">
			</div>
		</div>
		<div class="form-item">
			<label class="item-label">金额<span class="check-tips">（商品金额）</span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="total" value="{$info.total}">
			</div>
		</div>


<div class="form-item">
			<label class="item-label">总额<span class="check-tips">（总额）</span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="pricetotal" value="{$info.pricetotal}">
			</div>
		</div>
		<div class="form-item">
			<label class="item-label">会员备注<span class="check-tips">（总额）</span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="info" value="{$info.info}">
			</div>
		</div>
<div class="form-item">
			<label class="item-label">运费<span class="check-tips">（发货的快递单号）</span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="shipprice" value="{$info.shipprice}">
			</div>
		</div>
<div class="form-item">
			<label class="item-label">状态<span class="check-tips"></span></label>
			<div class="controls">
				<input type="text"  class="text input-large" name="status" value="{:I('status')}">
			</div>
		</div>
      <div class="form-item">
			<label class="item-label">操作人<span class="check-tips">（用于调转的URL，支持带http://的URL或U函数参数格式）</span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="assistant" value="{$info.assistant|default='暂无'}">
			</div>
		</div>
		<div class="form-item">
			<input type="hidden" name="id" value="{$info.id|default=''}">
			<button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
			<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>
	</form></div>
	
	<div id="tab2" class="tab-pane  tab2">
	<table  id="table" class="gridtable" width="100%">
        <thead>
            <tr>
			 <th >商品编号</th>
                <th >商品名</th>
				<th >规格</th>
                <th >价格</th>
                <th >数量</th>
                
            </tr>
        </thead>  </tbody>  <volist name="list" id="vo">  
           <tr>
		 <td align="center">{$vo.goodid}</td>
                <td><A href="{:U('Home/Article/detail?id='.$vo['goodid'])}" > <img src="{$vo.goodid|get_cover_id|get_cover='path'}"  width="40" height="40"/>{$vo.goodid|get_good_name}</A></td>
               <td align="center"> <span class="weight">{$vo.parameters|default="无"}</span></td>
                <td align="center">{$vo.goodid|get_good_price}</td>
                 <td align="center">{$vo.num}</td>
                
            </tr>
          </volist>                 </tbody></table>  <BR/>  
		  <div style="color:red">
           <volist name="alist" id="ad">
            <p style="text-align:right;color:red;width:100%">收件人：{$ad.realname}</p> 
		   <p style="text-align:right;color:red;width:100%">电话：{$vo.cellphone}</p> 
		  
		  <p style="text-align:right;color:red;width:100%">地址： {$ad.address} </p>
          </volist>
          <volist name="detail" id="vo">
          
		  <p style="text-align:right;color:red;width:100%">小计：{$vo.total}元 </p> 
		   <p style="text-align:right;color:red;width:100%">运费：{$vo.shipprice}元</p> 
		  
		  <p style="text-align:right;color:red;width:100%">总金额： {$vo.pricetotal}元 </p>
		   <p style="text-align:right;color:red;width:100%">时间：{$vo.create_time||date='Y-m-d H:i:s',###}</p>  </volist> </div>
		  </div>
	</div>
</block>
<block name="script">
<script type="text/javascript" charset="utf-8">
	//导航高亮
	highlight_subnav('{:U('index')}');
	if($('ul.tab-nav').length){
		//当有tab时，返回按钮不显示
		$('.btn-return').hide();
	}
	$(function(){
		//支持tab
		showTab();
	})

</script>
</block>
